package pt.elvis.revanweb.client.DatabaseObjects;

public class Bookmarks_Objects {
	private final int idBookmark; // It's final because it should not be changed.
	private String bookmarkName;
	private String bookmarkURL;
	private String bookmarkDescription;
	private String bookmarkImagePath;
	private boolean active;
	private int bookmarkCount;
	
	public Bookmarks_Objects(int idBookmark, String bookmarkName,
			String bookmarkURL, String bookmarkDescription,
			String bookmarkImagePath, boolean active, int bookmarkCount) {
		super();
		this.idBookmark = idBookmark;
		this.bookmarkName = bookmarkName;
		this.bookmarkURL = bookmarkURL;
		this.bookmarkDescription = bookmarkDescription;
		this.bookmarkImagePath = bookmarkImagePath;
		this.active = active;
		this.bookmarkCount = bookmarkCount;
	}

	public int getIdBookmark() {
		return idBookmark;
	}


	public String getBookmarkName() {
		return bookmarkName;
	}

	public void setBookmarkName(String bookmarkName) {
		this.bookmarkName = bookmarkName;
	}

	public String getBookmarkURL() {
		return bookmarkURL;
	}

	public void setBookmarkURL(String bookmarkURL) {
		this.bookmarkURL = bookmarkURL;
	}

	public String getBookmarkDescription() {
		return bookmarkDescription;
	}

	public void setBookmarkDescription(String bookmarkDescription) {
		this.bookmarkDescription = bookmarkDescription;
	}

	public String getBookmarkImagePath() {
		return bookmarkImagePath;
	}

	public void setBookmarkImagePath(String bookmarkImagePath) {
		this.bookmarkImagePath = bookmarkImagePath;
	}

	public boolean getActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}
	
	public void swapActive() {
		if (this.active)
			this.active = false;
		else
			this.active = true;
	}

	public int getBookmarkCount() {
		return bookmarkCount;
	}

	public void setBookmarkCount(int bookmarkCount) {
		this.bookmarkCount = bookmarkCount;
	}
}
